package com.shitou.shitoucommons.openapi;

import com.shitou.shitoucommons.utils.RespBean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;


/**
 * interface detail:
 *  所有的open结构继承这个接口，这个接口放了所有对外开放的互相调用的api
 * @author 石头人
 */
@SuppressWarnings("all")
public interface AllOpenFeighnApi {




    @PostMapping("/shitou-member/shitoumember/member/getMemberVo")
    RespBean getMemberVo(@RequestParam long memberId);

    @PostMapping("/shitou-member/shitoumember/memberreceiveaddress/getAddressVo")
    RespBean getAddress(@RequestParam long addressId, @RequestParam long memberId);

    @PostMapping("/shitou-member/shitoumember/member/checkLogin")
    RespBean checkLogin(@RequestParam String token);

    @PostMapping("/shitou-member/shitoumember/memberreceiveaddress/checkMemberAddress")
    RespBean checkMemberAddress(@RequestParam Long memberId, @RequestParam Long addressId);




    @PostMapping("/shitou-product/shitouproduct/spuinfo/getSpuInfoVo")
    RespBean getSpuInfoVo(@RequestParam long spuId);

    @PostMapping("/shitou-product/shitouproduct/spuinfo/getMemberIds")
    RespBean getMemberIds(@RequestParam long[] spuIds);

    @PostMapping("/shitou-product/shitouproduct/spuinfo/checkPublisherIsMyself")
    RespBean checkPublisherIsMyself(@RequestParam Long memberId, @RequestParam Long spuId);

    @PostMapping("/shitou-product/shitouproduct/spuinfo/batchCheckPublisherIsMyself")
    RespBean batchCheckPublisherIsMyself(@RequestParam Long memberId, @RequestParam Long[] spuIds);

    @PostMapping("/shitou-product/shitouproduct/spuinfo/checkTotalPrice")
    RespBean checkTotalPrice(@RequestParam Long[] spuIds, @RequestParam BigDecimal price);

    @PostMapping("/shitou-product/shitouproduct/spuinfo/checkSaleCount")
    RespBean checkSaleCount(@RequestParam long[] spuIds);

}
